<h1>Banner</h1>

<a href = "<?php echo base_url(); ?>admin/banner/add" class = "add">
  <?php echo image_asset('icon-add.png', 'admin', array('alt'=>'Add','class'=>'img_link')); ?>
  &nbsp;&nbsp;&nbsp;Add
</a>

<div class = "page">
  
</div>

<div class = "clear"></div>

<table class ="list">
  <tr>
    <th scope="col">Remark</th>
    <th scope="col" width = "50">Position</th>
    <th scope="col" width = "80">Start</th>
    <th scope="col" width = "80">Finish</th>
    <th scope="col" width = "50">Status</th>
    <th scope="col" width = "50">Edit</th>
    <th scope="col" width = "50">Delete</th>
  </tr>
<?
 foreach ($lists as $v) {
?>
  <tr>
    <td><?php echo $v['remark']; ?></td>
    <td><?php echo $v['position']; ?></td>
    <td><?php echo $v['date_start']; ?></td>
    <td><?php echo $v['date_finish']; ?></td>
    <td><a href = "<?php echo base_url(); ?>admin/banner/status/<?php echo $v['id']; ?>" class = "btn"><?php echo $v['status']; ?></a></td>
    <td><a href = "<?php echo base_url(); ?>admin/banner/edit/<?php echo $v['id']; ?>" class = "btn">edit</a></td>
    <td><a href = "<?php echo base_url(); ?>admin/banner/del/<?php echo $v['id']; ?>" class = "btn" onClick = "return confirmSubmit()">delete</a></td>
  </tr>
<?
  }
?>
</table>
<style>
  .tech_img{
    width:70px;
  }
</style>